package com.cdxy.model.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * @Author: tangy
 * @Date: 2020/2/23 18:26
 */
@Data
@ApiModel
public class LoginAccountReq implements Serializable {

    private static final long serialVersionUID = 2957107025079738340L;

    @ApiModelProperty(value = "账号（手机号/邮箱）", required = true)
    @NotBlank(message = "账号不能为空")
    private String account;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "密码")
    @Size(min = 32, max = 32)
    private String password;

    @ApiModelProperty(value = "获取图像验证码的uuid")
    private String uuid;

    @ApiModelProperty(value = "uuid code")
    private String uuidCode;
}
